local qunxian3__baishoukaiduo_sansebaqi = fk.CreateSkill {

  name = "qunxian3__baishoukaiduo_sansebaqi",

  tags = { Skill.Compulsory, },

}

Fk:loadTranslationTable {
  ["qunxian3__baishoukaiduo_sansebaqi"] = "三色霸气",
  [":qunxian3__baishoukaiduo_sansebaqi"] = [[锁定技，你造成的伤害加X，且你无法成为其他角色非伤害牌的目标，体力值小于你的角色受到伤害加一。
  体力值等于你的角色无法响应你使用的牌。（X为【最强生物】己发动次数＋1）]],
  ["$qunxian3__baishoukaiduo_sansebaqi"] = "唯有霸气才凌驾于一切",
}

qunxian3__baishoukaiduo_sansebaqi:addEffect(fk.DamageCaused, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(qunxian3__baishoukaiduo_sansebaqi.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    data:changeDamage(player:usedSkillTimes("qunxian3__baishoukaiduo_zuiqiangshengwu", Player.HistoryGame)+1)
  end
})

qunxian3__baishoukaiduo_sansebaqi:addEffect(fk.DamageInflicted, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target.hp < player.hp and player:hasSkill(qunxian3__baishoukaiduo_sansebaqi.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    data:changeDamage(1)
  end
})

qunxian3__baishoukaiduo_sansebaqi:addEffect(fk.TargetSpecifying, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(qunxian3__baishoukaiduo_sansebaqi.name) and data.to.hp == player.hp
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    data.disresponsive = true
  end
})

qunxian3__baishoukaiduo_sansebaqi:addEffect("prohibit", {
  is_prohibited = function(self, from, to, card)
    return to and to:hasSkill(qunxian3__baishoukaiduo_sansebaqi.name) and card and not card.is_damage_card and from ~= to
  end
})



return qunxian3__baishoukaiduo_sansebaqi
